#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class TrGoupArrangeItem : Business.BusinessBase<TrGoupArrangeItem, int>
	{
		#region Fields and Properties

		private String arrangeCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ArrangeCode
		{
			get { return arrangeCode; }
			set
			{
				if (value != arrangeCode)
				{
					MarkChanged("ArrangeCode");
					arrangeCode = value;
				}
			}
		}

		private String turn = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Turn
		{
			get { return turn; }
			set
			{
				if (value != turn)
				{
					MarkChanged("Turn");
					turn = value;
				}
			}
		}

		private String teacherCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String TeacherCode
		{
			get { return teacherCode; }
			set
			{
				if (value != teacherCode)
				{
					MarkChanged("TeacherCode");
					teacherCode = value;
				}
			}
		}

		private String assessCate = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String AssessCate
		{
			get { return assessCate; }
			set
			{
				if (value != assessCate)
				{
					MarkChanged("AssessCate");
					assessCate = value;
				}
			}
		}

		private int num = 0;
		/// <summary>
		/// 
		/// </summary>
		public int Num
		{
			get { return num; }
			set
			{
				if (value != num)
				{
					MarkChanged("Num");
					num = value;
				}
			}
		}

		private int weekType = 0;
		/// <summary>
		/// 
		/// </summary>
		public int WeekType
		{
			get { return weekType; }
			set
			{
				if (value != weekType)
				{
					MarkChanged("WeekType");
					weekType = value;
				}
			}
		}

		private String classCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ClassCode
		{
			get { return classCode; }
			set
			{
				if (value != classCode)
				{
					MarkChanged("ClassCode");
					classCode = value;
				}
			}
		}

		private String unit = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Unit
		{
			get { return unit; }
			set
			{
				if (value != unit)
				{
					MarkChanged("Unit");
					unit = value;
				}
			}
		}

		private String arrangeItemCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ArrangeItemCode
		{
			get { return arrangeItemCode; }
			set
			{
				if (value != arrangeItemCode)
				{
					MarkChanged("ArrangeItemCode");
					arrangeItemCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public TrGoupArrangeItem()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override TrGoupArrangeItem DataSelect(int id)
		{
			return Services.DALService.TrGoupArrangeItemService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.TrGoupArrangeItemService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.TrGoupArrangeItemService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.TrGoupArrangeItemService.Delete(this);
		}

		#endregion Base overrides
	}
}
